package com.example.jpademo.model;

import lombok.Data;
import org.hibernate.annotations.GeneratorType;
import org.hibernate.annotations.GenericGenerator;

import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import java.io.Serializable;
import java.util.Date;

@Entity
@Data
public class EtlAppInfo implements Serializable {
    @Id
    @GenericGenerator(name="myuuid",strategy = "com.example.jpademo.conf.RandomIdGenerator")
    @GeneratedValue(generator = "myuuid")
    private Long id;
    private String appId;
    private String infoName;
    private Date inputDate;
}
